<template>
  <el-dialog :title="titleText" :visible.sync="showDialog" width="100%" top="0" :close-on-click-modal="false" @close="cancel">
    <div class="images-wrapper"></div>
    <div slot="footer" class="dialog-footer">
      <el-button class="cancelbtn" @click="cancel">关 闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  name: 'ImagesDialog',
  props: {
    value: Boolean,
    titleText: {
      type: String,
      default: '123'
    }
  },
  data() {
    return {
      showDialog: false,
      selectItems: [],
      loading: false
    };
  },

  watch: {
    value(v) {
      this.showDialog = v;
    }
  },
  created() {
    this.showDialog = this.value;
  },
  mounted() {},
  methods: {
    close() {
      this.$emit('input', false);
    },
    cancel() {
      this.$emit('input', false);
    }
  }
};
</script>

<style lang="scss" scoped>
::v-deep .el-dialog__body {
  padding: 30px 20px !important;
}
</style>
